package com.demo.service;

import com.demo.entity.Goods;
import com.demo.entity.User;
import com.demo.vo.GoodsVo;

import java.util.List;

public interface IGoodsService {

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param arg
     * @return
     */
    List<Goods> queryByPage(GoodsVo arg);

    int queryCount(GoodsVo arg);

    int deleteByPrimaryKey(Integer id);

    int insert(Goods arg);

    int insertSelective(Goods arg);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods arg);

    /**
     * web 端产品分类
     * @param user
     * @return
     */
    List<Goods> queryGoodsCategory(GoodsVo user);

    /**
     * 根据IDS获取产品
     * @param ids
     * @return
     */
    List<Goods> selectByIds(List<String> ids);


    /***
     * 获取产品运营账户QQ
     * @return
     */
    List<User> queryGoodsQQ();

    /**
     *判断是否运营人员
     * @param user
     * @return
     */
    int isOperator(Goods user);


}
